package com.ita.util;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class FileHelper {

	public static List<String> readInfoFromFile(String file) {

		List<String> list = new ArrayList<String>();
		Scanner scanner = null;
		try {
			scanner = new Scanner(new File(file));
			while (scanner.hasNextLine()) {
				String string = scanner.nextLine();
				list.add(string);
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			scanner.close();
		}

		return list;

	}

}
